<#include "../../select.ftl" />
<#include "../../upload.ftl" />
<#include "../../display.ftl" />
<#assign shmsConstant = statics["cn.hfatec.shms.constants.ShmsConstant"]/>
<!DOCTYPE html>
<html>
<head>
    <title>客户详细信息</title>
    <script type="text/javascript">
        function popAddOrModify(id) {

            var data = {};
            var url = '${absoluteContextPath}/vip/vipXxb';
            if (id != undefined) {
                data.id = id;
                url = url + "/goEdit";
            } else {
                url = url + "/goAdd";
            }
            $.ajax({
                url: url,
                type: 'post',
                data: data,
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        var pop_div = $('#myModal');
                        pop_div.html(data.content.data);
                        pop_div.modal('show');
                    } else {
                        $.showMessage({parentId: "showMessage", message: "数据加载异常！", type: "success"});
                    }
                }
            });
        }
        $(function () {
            showServiceRecord();
            showDelayRecord();
            $(":input").attr("readonly", "readonly");
        });

        function refreshTable() {
            var id = $("#id").val();
            window.location.href = "${absoluteContextPath}/yk/ykTjhd/goView/" + id;

        }
        function refreshList() {

            window.location.href = "${absoluteContextPath}/yk/ykTjhd/list";

        }
        //服务记录
        function showServiceRecord() {
            var data = {};

            var url = '${absoluteContextPath}/yk/ykTjhd/ajaxTjList';
            $.ajax({
                url: url,
                type: 'post',
                data: data,
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        $("#tableContent_CustomRel").html(data.content.data);
                    } else {
                        $.showMessage({parentId: "showMessage", message: "数据加载异常！", type: "success"});
                    }
                }
            });
        }


    </script>
</head>
<body>
<div class="breadcrumbs">
    <ol class="breadcrumb">
        <li><a href="${absoluteContextPath}/home"><i class="fa fa-home"></i>首页</a></li>
        <li><a href="#">用户管理</a></li>
        <li class="active">综合查询</li>
    </ol>
</div>

<#--<@upload uploadBtnId="uploadPhotoBtn" success="uploadPhotoSuccess" fileType="jpg,png,gif,jpeg,bmp" ></@upload>-->

<div class="main">
    <div id="errorMessage"><#include "../../message.ftl" /></div>
    <!-- row -->

    <div class="row">
        <div class="col-md-12">
            <section class="tile">
                <!-- tile body -->
                <div class="tile-body">
                    <div class="form-horizontal">
                        <div class="row">

                        <#-- <div class="col-md-4 floatl">
                             <div class="form-group">
                                 <label class="col-sm-4 control-label">姓名<sup
                                         style="color: red">*</sup></label>

                                 <div class="col-sm-8">
                                     <input name="clientName" value="${vipXxb.clientName!''}" type="text"
                                            class="form-control"/>
                                     <input type="hidden"  name="id" value="${vipXxb.id?c}"/>
                                 </div>
                             </div>
                             <div class="form-group">
                                 <label class="col-sm-4 control-label">身份证<sup
                                         style="color: red">*</sup></label>

                                 <div class="col-sm-8">
                                     <input name="cardno" value="${vipXxb.cardno!''}" type="text"
                                            class="form-control"/>
                                 </div>
                             </div>
                         </div>-->
                            <div class="floatr">
                                <button type="button" class="btn btn-primary margin-15"
                                        style="position: relative;top:10px;right:20px;" onclick="refreshList();">返回
                                </button>
                            <#--<input id="id" name="id" type="hidden" value="${vipXxb.id?c}"/>-->
                            </div>
                        </div>
                    </div>
                </div>

            </section>

            <!-- tile -->
            <section class="tile">

                <!-- tile widget -->
                <div class="tile-widget nopadding" style="background:none">
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs tabdrop">
                        <li class="active"><a href="#service-tab" data-toggle="tab">续会前信息</a></li>

                    </ul>
                    <!-- / Nav tabs -->
                </div>
                <!-- /tile widget -->

                <!-- tile body -->
                <div class="tile-body tab-content nopadding">


                    <!--服务记录!-->
                    <div id="service-tab" class="tab-pane fade in active padding-15">
                        <div class="table-responsive">
                            <form id="search_ykTjhd_table" action="${absoluteContextPath}/yk/ykTjhd/ajaxTjList"
                                  method="post">
                                <input type="hidden" name="pageSize" value=""/>
                                <input type="hidden" name="currentPage" value=""/>

                            </form>
                            <div class="tile-body nopadding">
                                <div class="table-responsive" id="tableContent_TJ">
                                </div>
                            </div>
                        </div>
                    </div>


                    <!-- / Tab panes -->
                </div>
                <!-- /tile body -->

            </section>
            <!-- /tile -->
        </div>

    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    </div>
</div>
</body>

</html>
